#include "citemsource.h"

using namespace cooking;

CItemSource::CItemSource(QObject *parent) :
    CObject(parent)
{
}

int CItemSource::listItemId() {
    return m_list_item_id;
}

void CItemSource::setListItemId(int listItemId) {
    if (m_list_item_id != listItemId) {
        m_list_item_id = listItemId;
        emit listItemIdChanged();
    }
}

int CItemSource::sourceId() {
    return m_source_id;
}

void CItemSource::setSourceId(int sourceId) {
    if (m_source_id != sourceId) {
        m_source_id = sourceId;
        emit sourceIdChanged();
    }
}

CItemSource::ESourceType CItemSource::sourceType() {
    return m_source_type;
}

void CItemSource::setSourceType(CItemSource::ESourceType sourceType) {
    if (m_source_type != sourceType) {
        m_source_type = sourceType;
        emit sourceTypeChanged();
    }
}
